<?php

/**
 *
 */
abstract class base {
	protected $_view;
	public function __construct(){}
	
	public function run(){}
	
	public function dispatch(){}
	
        
        // Sets view for the appplication
        // if view is not passed it will set view with the name of page
	public function setView($view=''){
            if($view==''){
                $this->_view=params::getParam('page').'.phtml';
            }else{
                $this->_view=$view;
            }
            
        }
	
	
}

?>